package com.xmd.red.config;

import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.stereotype.Component;

/**
 * Created by superbone on 2016/10/31.
 */
@Component
@ConfigurationProperties(prefix = "wx")
public class WxConfig {

    private String certUrl;
    private String aesKey;
    private String mongoUrl;
    private String redPacketUpStr;
    private String redPacketDownStr;
    private Enterprise enterprise;
    private String testDeviceId;
    private String testOpenId;

    public String getCertUrl() {
        return certUrl;
    }

    public void setCertUrl(String certUrl) {
        this.certUrl = certUrl;
    }

    public String getAesKey() {
        return aesKey;
    }

    public void setAesKey(String aesKey) {
        this.aesKey = aesKey;
    }

    public String getMongoUrl() {
        return mongoUrl;
    }

    public void setMongoUrl(String mongoUrl) {
        this.mongoUrl = mongoUrl;
    }

    public String getRedPacketUpStr() {
        return redPacketUpStr;
    }

    public void setRedPacketUpStr(String redPacketUpStr) {
        this.redPacketUpStr = redPacketUpStr;
    }

    public String getRedPacketDownStr() {
        return redPacketDownStr;
    }

    public void setRedPacketDownStr(String redPacketDownStr) {
        this.redPacketDownStr = redPacketDownStr;
    }

    public String getTestDeviceId() {
        return testDeviceId;
    }

    public void setTestDeviceId(String testDeviceId) {
        this.testDeviceId = testDeviceId;
    }

    public String getTestOpenId() {
        return testOpenId;
    }

    public void setTestOpenId(String testOpenId) {
        this.testOpenId = testOpenId;
    }

    public Enterprise getEnterprise() {
        return enterprise;
    }

    public void setEnterprise(Enterprise enterprise) {
        this.enterprise = enterprise;
    }

    public static class Enterprise{

        private String mch_appid;
        private String mchid;
        private String check_name;
        private String desc;
        private String key;
        private String url;

        public String getMch_appid() {
            return mch_appid;
        }

        public void setMch_appid(String mch_appid) {
            this.mch_appid = mch_appid;
        }

        public String getMchid() {
            return mchid;
        }

        public void setMchid(String mchid) {
            this.mchid = mchid;
        }

        public String getCheck_name() {
            return check_name;
        }

        public void setCheck_name(String check_name) {
            this.check_name = check_name;
        }

        public String getDesc() {
            return desc;
        }

        public void setDesc(String desc) {
            this.desc = desc;
        }

        public String getKey() {
            return key;
        }

        public void setKey(String key) {
            this.key = key;
        }

        public String getUrl() {
            return url;
        }

        public void setUrl(String url) {
            this.url = url;
        }
    }
}
